/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

package 练习.test04;

class Student {

    int number;//学号
    int state;
    int score;


    //random用法 [a,b] random()*( b - a + 1) + a

    public void state() {

        state = (int) (Math.random() * (6 - 1 + 1) + 1);

    }

    public void score() {

        score = (int) (Math.random() * (100 - 60 + 1) + 60);

    }

    public String info() {
        return "学号" + number + " 班级" + state + " 成绩" + score;
    }
}
